home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / powerb5.zip / P5DOS005.TIP < prev    next >
Text File  |  1993-06-01  |  2KB  |  61 lines

  1. When you work in a Windows 3.0 DOS session for extended
  2. periods, you might forget that Windows is running and type
  3. WIN to enter it again, starting one Windows session inside
  4. of another. In January's "50 Tips for DOS and Windows," the
  5. Microsoft Technical Support staff offered a solution to this
  6. problem: Change your prompt. But the two-line prompt their
  7. batch file creates results in a screen that scrolls one
  8. extra line for every command, wasting space.
  9.  
  10. My solution is a variation on that tip: Use ANSI.SYS
  11. parameters to put a reminder at the top of the screen. Also,
  12. change the foreground and background colors to make the
  13. screen more vivid. For this technique to work, you must have
  14. the line DEVICE=C:\DOS\ANSI.SYS in your CONFIG.SYS file.
  15. Then, rather than a standard DOS session, run DOS.BAT
  16. (below) to use the prompt in Windows.
  17.  
  18. Steve Johnson
  19. Powder Springs, Georgia
  20.  
  21. Editor's Note: DOS.BAT demonstrates a very useful technique
  22. that lets you place a message in a fixed spot on your screen
  23. every time the DOS prompt appears. (OS/2 1.x's "DOS box"
  24. used a similar prompt to tell you how to get online help --
  25. the first time a help prompt was ever included in the DOS
  26. environment.) Mr. Johnson's screen is not needed in Windows
  27. 3.1, which won't let you load Windows within Windows, but
  28. his tip can save a lot of confusion in Windows 3.0 or most
  29. other places where you might shell out of a program. Check
  30. out "Retrieving Your Precious Prompt," Star-Dot-Star,
  31. December 1991, to see how a batch file can change the
  32. prompt, enter an application, and then change it back again
  33. when you exit. That batch file and this one can be easily
  34. combined.
  35.  
  36. You can also play with the PROMPT command to change the look
  37. of your screen. For instance, if you change the batch file's
  38. first line to
  39.  
  40. PROMPT $e[1;33;44m$p$g$e[1;31;44m$e[s$e[1;1H$e[KWindows is active$e[1;69H$t$e[1;3744m$e[u
  41.  
  42. (note that there are no blank spaces here except the two in
  43. the text 'Windows is active'), you can also display the
  44. time.
  45.  
  46. DOS.BAT:
  47.  
  48. ---- BEGIN LISTING ----
  49. PROMPT $e[1;33;44m$p$g$e[1;31;44m$e[s$e[1;62HWindows is active.$e[1;37;44m$e[u
  50. CLS
  51. @COMMAND.COM
  52. ---- END LISTING ----
  53.  
  54.  
  55. Title: A Message From the Top
  56. Category: DOS
  57. Issue Date: August, 1992
  58. Editor: Brett Glass
  59. Supplementary Files: None
  60. Filename: P5DOS005.TIP
  61.